package com.shzu.jwc.ty.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TheoreticalExaminationExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TheoreticalExaminationExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTheoreticalExaminationIdIsNull() {
            addCriterion("theoretical_examination_id is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdIsNotNull() {
            addCriterion("theoretical_examination_id is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdEqualTo(Integer value) {
            addCriterion("theoretical_examination_id =", value, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdNotEqualTo(Integer value) {
            addCriterion("theoretical_examination_id <>", value, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdGreaterThan(Integer value) {
            addCriterion("theoretical_examination_id >", value, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("theoretical_examination_id >=", value, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdLessThan(Integer value) {
            addCriterion("theoretical_examination_id <", value, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdLessThanOrEqualTo(Integer value) {
            addCriterion("theoretical_examination_id <=", value, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdIn(List<Integer> values) {
            addCriterion("theoretical_examination_id in", values, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdNotIn(List<Integer> values) {
            addCriterion("theoretical_examination_id not in", values, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_examination_id between", value1, value2, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationIdNotBetween(Integer value1, Integer value2) {
            addCriterion("theoretical_examination_id not between", value1, value2, "theoreticalExaminationId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameIsNull() {
            addCriterion("theoretical_examination_name is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameIsNotNull() {
            addCriterion("theoretical_examination_name is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameEqualTo(String value) {
            addCriterion("theoretical_examination_name =", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotEqualTo(String value) {
            addCriterion("theoretical_examination_name <>", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameGreaterThan(String value) {
            addCriterion("theoretical_examination_name >", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameGreaterThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_name >=", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameLessThan(String value) {
            addCriterion("theoretical_examination_name <", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameLessThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_name <=", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameLike(String value) {
            addCriterion("theoretical_examination_name like", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotLike(String value) {
            addCriterion("theoretical_examination_name not like", value, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameIn(List<String> values) {
            addCriterion("theoretical_examination_name in", values, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotIn(List<String> values) {
            addCriterion("theoretical_examination_name not in", values, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameBetween(String value1, String value2) {
            addCriterion("theoretical_examination_name between", value1, value2, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationNameNotBetween(String value1, String value2) {
            addCriterion("theoretical_examination_name not between", value1, value2, "theoreticalExaminationName");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskIsNull() {
            addCriterion("theoretical_examination_ask is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskIsNotNull() {
            addCriterion("theoretical_examination_ask is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskEqualTo(String value) {
            addCriterion("theoretical_examination_ask =", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskNotEqualTo(String value) {
            addCriterion("theoretical_examination_ask <>", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskGreaterThan(String value) {
            addCriterion("theoretical_examination_ask >", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskGreaterThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_ask >=", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskLessThan(String value) {
            addCriterion("theoretical_examination_ask <", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskLessThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_ask <=", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskLike(String value) {
            addCriterion("theoretical_examination_ask like", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskNotLike(String value) {
            addCriterion("theoretical_examination_ask not like", value, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskIn(List<String> values) {
            addCriterion("theoretical_examination_ask in", values, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskNotIn(List<String> values) {
            addCriterion("theoretical_examination_ask not in", values, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskBetween(String value1, String value2) {
            addCriterion("theoretical_examination_ask between", value1, value2, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationAskNotBetween(String value1, String value2) {
            addCriterion("theoretical_examination_ask not between", value1, value2, "theoreticalExaminationAsk");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceIsNull() {
            addCriterion("theoretical_examination_place is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceIsNotNull() {
            addCriterion("theoretical_examination_place is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceEqualTo(String value) {
            addCriterion("theoretical_examination_place =", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotEqualTo(String value) {
            addCriterion("theoretical_examination_place <>", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceGreaterThan(String value) {
            addCriterion("theoretical_examination_place >", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_place >=", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceLessThan(String value) {
            addCriterion("theoretical_examination_place <", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceLessThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_place <=", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceLike(String value) {
            addCriterion("theoretical_examination_place like", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotLike(String value) {
            addCriterion("theoretical_examination_place not like", value, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceIn(List<String> values) {
            addCriterion("theoretical_examination_place in", values, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotIn(List<String> values) {
            addCriterion("theoretical_examination_place not in", values, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceBetween(String value1, String value2) {
            addCriterion("theoretical_examination_place between", value1, value2, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationPlaceNotBetween(String value1, String value2) {
            addCriterion("theoretical_examination_place not between", value1, value2, "theoreticalExaminationPlace");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeIsNull() {
            addCriterion("theoretical_examination_start_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeIsNotNull() {
            addCriterion("theoretical_examination_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time =", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeNotEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time <>", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeGreaterThan(Date value) {
            addCriterion("theoretical_examination_start_time >", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time >=", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeLessThan(Date value) {
            addCriterion("theoretical_examination_start_time <", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_start_time <=", value, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeIn(List<Date> values) {
            addCriterion("theoretical_examination_start_time in", values, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeNotIn(List<Date> values) {
            addCriterion("theoretical_examination_start_time not in", values, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_start_time between", value1, value2, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_start_time not between", value1, value2, "theoreticalExaminationStartTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeIsNull() {
            addCriterion("theoretical_examination_end_time is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeIsNotNull() {
            addCriterion("theoretical_examination_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time =", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeNotEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time <>", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeGreaterThan(Date value) {
            addCriterion("theoretical_examination_end_time >", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time >=", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeLessThan(Date value) {
            addCriterion("theoretical_examination_end_time <", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("theoretical_examination_end_time <=", value, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeIn(List<Date> values) {
            addCriterion("theoretical_examination_end_time in", values, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeNotIn(List<Date> values) {
            addCriterion("theoretical_examination_end_time not in", values, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_end_time between", value1, value2, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("theoretical_examination_end_time not between", value1, value2, "theoreticalExaminationEndTime");
            return (Criteria) this;
        }

        public Criteria andYearIdIsNull() {
            addCriterion("year_id is null");
            return (Criteria) this;
        }

        public Criteria andYearIdIsNotNull() {
            addCriterion("year_id is not null");
            return (Criteria) this;
        }

        public Criteria andYearIdEqualTo(Integer value) {
            addCriterion("year_id =", value, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdNotEqualTo(Integer value) {
            addCriterion("year_id <>", value, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdGreaterThan(Integer value) {
            addCriterion("year_id >", value, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("year_id >=", value, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdLessThan(Integer value) {
            addCriterion("year_id <", value, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdLessThanOrEqualTo(Integer value) {
            addCriterion("year_id <=", value, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdIn(List<Integer> values) {
            addCriterion("year_id in", values, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdNotIn(List<Integer> values) {
            addCriterion("year_id not in", values, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdBetween(Integer value1, Integer value2) {
            addCriterion("year_id between", value1, value2, "yearId");
            return (Criteria) this;
        }

        public Criteria andYearIdNotBetween(Integer value1, Integer value2) {
            addCriterion("year_id not between", value1, value2, "yearId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdIsNull() {
            addCriterion("paper_model_id is null");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdIsNotNull() {
            addCriterion("paper_model_id is not null");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdEqualTo(Integer value) {
            addCriterion("paper_model_id =", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdNotEqualTo(Integer value) {
            addCriterion("paper_model_id <>", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdGreaterThan(Integer value) {
            addCriterion("paper_model_id >", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("paper_model_id >=", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdLessThan(Integer value) {
            addCriterion("paper_model_id <", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdLessThanOrEqualTo(Integer value) {
            addCriterion("paper_model_id <=", value, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdIn(List<Integer> values) {
            addCriterion("paper_model_id in", values, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdNotIn(List<Integer> values) {
            addCriterion("paper_model_id not in", values, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_id between", value1, value2, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andPaperModelIdNotBetween(Integer value1, Integer value2) {
            addCriterion("paper_model_id not between", value1, value2, "paperModelId");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorIsNull() {
            addCriterion("theoretical_examination_invigilator is null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorIsNotNull() {
            addCriterion("theoretical_examination_invigilator is not null");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorEqualTo(String value) {
            addCriterion("theoretical_examination_invigilator =", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorNotEqualTo(String value) {
            addCriterion("theoretical_examination_invigilator <>", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorGreaterThan(String value) {
            addCriterion("theoretical_examination_invigilator >", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorGreaterThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_invigilator >=", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorLessThan(String value) {
            addCriterion("theoretical_examination_invigilator <", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorLessThanOrEqualTo(String value) {
            addCriterion("theoretical_examination_invigilator <=", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorLike(String value) {
            addCriterion("theoretical_examination_invigilator like", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorNotLike(String value) {
            addCriterion("theoretical_examination_invigilator not like", value, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorIn(List<String> values) {
            addCriterion("theoretical_examination_invigilator in", values, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorNotIn(List<String> values) {
            addCriterion("theoretical_examination_invigilator not in", values, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorBetween(String value1, String value2) {
            addCriterion("theoretical_examination_invigilator between", value1, value2, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }

        public Criteria andTheoreticalExaminationInvigilatorNotBetween(String value1, String value2) {
            addCriterion("theoretical_examination_invigilator not between", value1, value2, "theoreticalExaminationInvigilator");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}